package com.itheima.dao;

import com.itheima.pojo.CheckItem;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


public interface CheckItemMapper {

    //新增检查项
    public Integer insertCheckItem(@RequestBody CheckItem checkItem);

    //根据id删除所选检查项
    public Integer deleteCheckItem(@RequestBody Integer id);

    //根据id查询检查项数量
    public int findCount(Integer id);

    /**
     * @param
     * @return
     * @author cc
     * 根据id或编码或名称进行查询
     */
    public List<CheckItem> findByAll(@Param("param") String param);

    public List<CheckItem> findAll();
}
